/**
 * main.cpp
 *
 * Version: $Id: main.cpp 75 2012-01-02 16:07:53Z s8376@pjwstk.edu.pl $
 */
#include <iostream>
#include "Integer.h"

using namespace std;

Integer Fibonacci(Integer n)
{
    Integer a(1), b(a), c = a, i;

    for (i = 0; i < n; i++) {
        c = a + b;
        a = b;
        b = c;
        cout << -c << endl;
    }
    return c;
}

Integer Fibonacci(int n)
{
    Integer a(1), b(a), c = a, i;
    for (i = 0; i < n; i++) {
        c = a + b;
        a = b;
        b = c;
        cout << -c << endl;
    }
    return c;
}

int main()
{
    for (int i = 0; i < 20; i++) {
        Integer F = i;
        cout << Fibonacci(F);
        cout << Fibonacci(i);
    }
    return 0;
}

